package com.flybutter.usagelab.repository

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query

@Dao
interface UsageInfoDao {
    @Query("SELECT * FROM usage_info")
    fun findAll(): List<UsageInfo>

    @Query("DELETE FROM usage_info")
    fun deleteAll()

    @Insert
    fun insertAll(list: List<UsageInfo>)

    @Query("SELECT COUNT(*) FROM usage_info")
    fun count(): Int
}